package org.dromara.bean.domain.vo;

import java.math.BigDecimal;
import java.util.Date;

import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.dromara.bean.domain.HisRegistration;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 挂号记录视图对象 his_registration
 *
 * @author Lion Li
 * @date 2024-11-30
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = HisRegistration.class)
public class HisRegistrationVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @ExcelProperty(value = "id")
    private Long id;


    /**
     * 订单号
     */
    @ExcelProperty(value = "订单号")
    private String  orderNumber;

    /**
     * 医生名称
     */
    @ExcelProperty(value = "医生名称")
    private String doctorName;

    /**
     * 所属会员名称
     */
    @ExcelProperty(value = "所属会员名称")
    private String memberName;


    /**
     * 就诊人姓名
     */
    @ExcelProperty(value = "就诊人姓名")
    private String patientName;

    /**
     * 就诊人手机号
     */
    @ExcelProperty(value = "就诊人手机号")
    private String mobile;


    /**
     * 支付金额
     */
    @ExcelProperty(value = "支付金额")
    private BigDecimal payPrice;


    /**
     * 支付时间
     */
    @ExcelProperty(value = "支付时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ColumnWidth(20)
    private Date payTime;

    /**
     * 状态
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "registration_status")
    private String status;
    /**
     * 会员id
     */
    private Long memberId;



    /**
     * 医生id
     */
    private Long doctorId;



    /**
     * 就诊卡id
     */
    private Long patientId;



    /**
     * 就诊日期
     */
    @ExcelProperty(value = "就诊日期")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ColumnWidth(20)
    private Date registrationTime;

    /**
     * 总金额
     */
    private BigDecimal totalPrice;


    /**
     * 就诊人身份证号
     */
    private String idCard;

    /**
     * 就诊人性别
     */
    private String gender;




    /**
     * 就诊人信息
     */
    private HisPatientVo hisPatientVo;

    /**
     * 医生信息
     */
    private HisDoctorVo hisDoctorVo;

    @JsonFormat(
        timezone = "GMT+8",
        pattern = "yyyy-MM-dd HH:mm:ss"
    )
    private Date createTime;

    private String title;

    private String remark;

    private String phone;
}
